<?php

namespace App\Models;

class AccountOperate extends Model
{
    protected $table = 'account_operate';

    protected $hidden = ['account_id', 'created_at', 'updated_at', 'deleted_at'];

    protected $guarded = ['account_id'];

    public function getOperateTimeAttribute($value)
    {
        return date("Y-m-d H:i:s", $value);
    }

    public function account()
    {
        return $this->belongsTo(Account::class);
    }
}
